package cn.com.lms.business.exam.persistence.entity;

import com.bnzj.core.persistence.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@Table(name = "bnz_exam_question_subject_option")
@Schema(description = "选择题")
public class QuestionSubjectOption extends BaseEntity {

    @Schema(description = "试题ID")
    @Column(name = "subject_id")
    private Long subjectId;

    @Schema(description = "选项名称 A-Z")
    @Column(name = "option_name")
    private String optionName;

    @Schema(description = "选项内容")
    private String content;

    @Schema(description = "是否正确答案 0-否 1-是")
    @Column(name = "is_right")
    private Boolean isRight;

    @Schema(description = "选项图片，json格式")
    @Column(name = "option_images")
    private String optionImages;

    @Schema(description = "是否删除  0-未删除 1-已删除")
    @Column(name = "is_delete")
    private Boolean isDelete;

}
